package com.zwl.springcloud.config;



import com.zwl.springcloud.utlis.JedisPoolUtil;
import org.yangyuan.pay.core.annotation.ResourceFactoryComponent;
import org.yangyuan.pay.core.common.RedisResourceFactory;
import redis.clients.jedis.JedisPool;

@ResourceFactoryComponent
public class DefaultRedisResourceFactory implements RedisResourceFactory {
    @Override
    public JedisPool getJedisPool() {
    	/*
    	  框架不关心JedisPool是怎么来的
    	  这里的RedisService是我自己实现的服务
    	  根据项目实际情况换成你自己的实现
    	*/
        return JedisPoolUtil.getJedisPoolInstance();
    }
}
